package com.xiaomai.eduservice.controller;

import com.xiaomai.commonutil.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")

public class EduLoginController {

    @PostMapping("/login")
    public R login(){

        return R.ok().data("token","admin");
    }


    @GetMapping("/info")
    public R info(){

        return R.ok().data("roles","[admin]").data("name","zhangsan")
                .data("avatar","https://ss3.baidu.com/-fo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/fc1f4134970a304e9b7f6625d4c8a786c8175c94.jpg");
    }
}
